Optimal. Leaf size=95 \[ \frac{3 F\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{d}+\frac{4 \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}+\frac{\sqrt{4 \cos (c+d x)+3} \tan (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.245654, antiderivative size = 95, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {2796, 3060, 2653, 3002, 2661, 2805} \[ \frac{3 F\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{d}+\frac{4 \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}+\frac{\sqrt{4 \cos (c+d x)+3} \tan (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2796
Rule 3060
Rule 2653
Rule 3002
Rule 2661
Rule 2805
Rubi steps
\begin{align*} \int \sqrt{3+4 \cos (c+d x)} \sec ^2(c+d x) \, dx &=\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{d}+\int \frac{\left (2-2 \cos ^2(c+d x)\right ) \sec (c+d x)}{\sqrt{3+4 \cos (c+d x)}} \, dx\\ &=\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{d}-\frac{1}{4} \int \frac{(-8-6 \cos (c+d x)) \sec (c+d x)}{\sqrt{3+4 \cos (c+d x)}} \, dx-\frac{1}{2} \int \sqrt{3+4 \cos (c+d x)} \, dx\\ &=-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{d}+\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{d}+\frac{3}{2} \int \frac{1}{\sqrt{3+4 \cos (c+d x)}} \, dx+2 \int \frac{\sec (c+d x)}{\sqrt{3+4 \cos (c+d x)}} \, dx\\ &=-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{d}+\frac{3 F\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}+\frac{4 \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}+\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{d}\\ \end{align*}
Mathematica [C] time = 1.09799, size = 157, normalized size = 1.65 \[ \frac{6 \sqrt{7} \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )+21 \sqrt{4 \cos (c+d x)+3} \tan (c+d x)+\frac{i \sqrt{7} \sin (c+d x) \left (-12 F\left (i \sinh ^{-1}\left (\sqrt{4 \cos (c+d x)+3}\right )|-\frac{1}{7}\right )+21 E\left (i \sinh ^{-1}\left (\sqrt{4 \cos (c+d x)+3}\right )|-\frac{1}{7}\right )-8 \Pi \left (-\frac{1}{3};i \sinh ^{-1}\left (\sqrt{4 \cos (c+d x)+3}\right )|-\frac{1}{7}\right )\right )}{\sqrt{\sin ^2(c+d x)}}}{21 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 3.312, size = 350, normalized size = 3.7 \begin{align*} -{\frac{1}{d}\sqrt{- \left ( -8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1 \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}} \left ( -4\,{\frac{\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{-8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1}{\it EllipticPi} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,2,2\,\sqrt{2} \right ) }{\sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}}}-2\,{\frac{\cos \left ( 1/2\,dx+c/2 \right ) \sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}}{2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}}+3\,{\frac{\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{-8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1}{\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,2\,\sqrt{2} \right ) }{\sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}}}+{\sqrt{ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}\sqrt{-8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1}{\it EllipticE} \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) ,2\,\sqrt{2} \right ){\frac{1}{\sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}}}} \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{4 \, \cos \left (d x + c\right ) + 3} \sec \left (d x + c\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sqrt{4 \, \cos \left (d x + c\right ) + 3} \sec \left (d x + c\right )^{2}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{4 \cos{\left (c + d x \right )} + 3} \sec ^{2}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{4 \, \cos \left (d x + c\right ) + 3} \sec \left (d x + c\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]